.class final Lcom/wqmobile/sdk/widget/c;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private synthetic d:Lcom/wqmobile/sdk/widget/ADView;

.field private final synthetic e:I


# direct methods
.method constructor <init>(Lcom/wqmobile/sdk/widget/ADView;I)V
    .locals 1

    const/4 v0, 0x0

    iput-object p1, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    iput p2, p0, Lcom/wqmobile/sdk/widget/c;->e:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v0, p0, Lcom/wqmobile/sdk/widget/c;->a:I

    iput v0, p0, Lcom/wqmobile/sdk/widget/c;->b:I

    invoke-virtual {p1}, Lcom/wqmobile/sdk/widget/ADView;->getWidth()I

    move-result v0

    iput v0, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    return-void
.end method


# virtual methods
.method public final onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 12

    const-wide/16 v10, 0xc8

    const/4 v9, 0x0

    const/4 v8, 0x1

    const/4 v7, 0x0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    float-to-int v1, v1

    iget-object v2, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/widget/ADView;->getWidth()I

    move-result v2

    iput v2, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v2, "testview"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "view width:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v4, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget v2, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    iget v3, p0, Lcom/wqmobile/sdk/widget/c;->e:I

    sub-int/2addr v2, v3

    iget v3, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v4, "wqxy"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "parent\'s left x12:"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return v8

    :pswitch_0
    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->j(Lcom/wqmobile/sdk/widget/ADView;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->k(Lcom/wqmobile/sdk/widget/ADView;)V

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v0, "wqxy"

    const-string v1, "in down"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0, v8}, Lcom/wqmobile/sdk/widget/ADView;->b(Lcom/wqmobile/sdk/widget/ADView;Z)V

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/wqmobile/sdk/widget/c;->a:I

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/wqmobile/sdk/widget/c;->b:I

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v0, "wqxy"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "In Down:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/wqmobile/sdk/widget/c;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " rawX"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/wqmobile/sdk/widget/c;->b:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v0, "testview"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "left:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    iget v0, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    iget v2, p0, Lcom/wqmobile/sdk/widget/c;->e:I

    sub-int/2addr v0, v2

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v2, "wqxymove"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "in move x:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " min :"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-ge v1, v0, :cond_5

    :goto_1
    iget-object v1, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v1, v9}, Lcom/wqmobile/sdk/widget/ADView;->b(Lcom/wqmobile/sdk/widget/ADView;Z)V

    iget v1, p0, Lcom/wqmobile/sdk/widget/c;->a:I

    sub-int/2addr v0, v1

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v1

    add-int/2addr v1, v0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v2

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v3

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v4

    add-int/2addr v3, v4

    invoke-virtual {p1, v0, v2, v1, v3}, Landroid/view/View;->layout(IIII)V

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v2, "wqxymove"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "In Move left:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v3, " right:"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_2
    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v0, "wqxy"

    const-string v4, "in up"

    invoke-static {v0, v4}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result v0

    iget v4, p0, Lcom/wqmobile/sdk/widget/c;->c:I

    iget-object v5, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v5}, Lcom/wqmobile/sdk/widget/ADView;->l(Lcom/wqmobile/sdk/widget/ADView;)I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v5

    add-int/2addr v5, v4

    iget-object v6, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v6, v4}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;I)V

    iget-object v6, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v6}, Lcom/wqmobile/sdk/widget/ADView;->m(Lcom/wqmobile/sdk/widget/ADView;)Z

    move-result v6

    if-eqz v6, :cond_1

    iget-object v6, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v6}, Lcom/wqmobile/sdk/widget/ADView;->n(Lcom/wqmobile/sdk/widget/ADView;)Z

    move-result v6

    if-nez v6, :cond_0

    :cond_1
    iget-object v6, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v6}, Lcom/wqmobile/sdk/widget/ADView;->m(Lcom/wqmobile/sdk/widget/ADView;)Z

    move-result v6

    if-eqz v6, :cond_3

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-static {}, Lcom/wqmobile/sdk/widget/ADView;->b()Lcom/wqmobile/sdk/a/a;

    const-string v1, "wqxy"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "dektax:"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sub-int v5, v0, v2

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v1, v4}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    new-instance v1, Landroid/view/animation/TranslateAnimation;

    sub-int/2addr v0, v2

    int-to-float v0, v0

    invoke-direct {v1, v0, v7, v7, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    const-wide/16 v4, 0x64

    invoke-virtual {v1, v4, v5}, Landroid/view/animation/Animation;->setDuration(J)V

    invoke-virtual {p1, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v4

    add-int/2addr v1, v4

    invoke-virtual {p1, v2, v0, v3, v1}, Landroid/view/View;->layout(IIII)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0, v8}, Lcom/wqmobile/sdk/widget/ADView;->c(Lcom/wqmobile/sdk/widget/ADView;Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->o(Lcom/wqmobile/sdk/widget/ADView;)V

    goto/16 :goto_0

    :cond_3
    iget v6, p0, Lcom/wqmobile/sdk/widget/c;->b:I

    if-le v1, v6, :cond_4

    new-instance v1, Landroid/view/animation/TranslateAnimation;

    sub-int/2addr v0, v4

    int-to-float v0, v0

    invoke-direct {v1, v0, v7, v7, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v1, v10, v11}, Landroid/view/animation/Animation;->setDuration(J)V

    invoke-virtual {p1, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v2

    add-int/2addr v1, v2

    invoke-virtual {p1, v4, v0, v5, v1}, Landroid/view/View;->layout(IIII)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0, v9}, Lcom/wqmobile/sdk/widget/ADView;->c(Lcom/wqmobile/sdk/widget/ADView;Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->p(Lcom/wqmobile/sdk/widget/ADView;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->q(Lcom/wqmobile/sdk/widget/ADView;)V

    goto/16 :goto_0

    :cond_4
    new-instance v1, Landroid/view/animation/TranslateAnimation;

    sub-int/2addr v0, v2

    const/4 v4, 0x5

    sub-int/2addr v0, v4

    int-to-float v0, v0

    invoke-direct {v1, v0, v7, v7, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v1, v10, v11}, Landroid/view/animation/Animation;->setDuration(J)V

    invoke-virtual {p1, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v4

    add-int/2addr v1, v4

    invoke-virtual {p1, v2, v0, v3, v1}, Landroid/view/View;->layout(IIII)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0, v8}, Lcom/wqmobile/sdk/widget/ADView;->c(Lcom/wqmobile/sdk/widget/ADView;Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/c;->d:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->o(Lcom/wqmobile/sdk/widget/ADView;)V

    goto/16 :goto_0

    :cond_5
    move v0, v1

    goto/16 :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method
